/**
 * Copyright (C), 2018-2019, 湖南继善高科技有限公司
 * FileName: ActivitiConfig
 * Author:   Jack
 * Date:     2019/10/15 17:32
 * Description: activiti 配置
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package io.renren.config;

import io.renren.common.utils.IdGen;
import org.activiti.spring.SpringProcessEngineConfiguration;
import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;

/**
 * 〈activiti 配置〉
 *
 * @author Jack
 * @create 2019/10/15
 * @since 1.0.0
 */
@Configuration
public class ActivitiConfig implements ProcessEngineConfigurationConfigurer {

    @Override
    public void configure(SpringProcessEngineConfiguration springProcessEngineConfiguration) {
        springProcessEngineConfiguration.setIdGenerator(new IdGen());
    }
}
